<template>
  <div>
    <HeaderNav></HeaderNav>
    <div class="dobusiness">
      <SideNav></SideNav>
      <div class="dobusiness-right">
        <div class="right-top">
          <div className="inline-input">
            工单编号：<input
              v-model="input"
              placeholder="请输入"
              class="input1"
              style="height: 38px; width: 200px"
            />
            工单状态:
            <template class="select">
              <el-select v-model="value" placeholder="请选择">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </template>
            <el-button type="primary" icon="el-icon-search" class="button1"
              >查询</el-button
            >
          </div>
        </div>
        <div class="dobusiness-fotter">
          <div class="data-top">
            <el-popover placement="right" width="400" trigger="click">
              <el-table :data="gridData">
                <el-table-column
                  width="150"
                  property="date"
                  label="日期"
                ></el-table-column>
                <el-table-column
                  width="100"
                  property="name"
                  label="姓名"
                ></el-table-column>
                <el-table-column
                  width="300"
                  property="address"
                  label="地址"
                ></el-table-column>
              </el-table>
              <el-button slot="reference">+新建</el-button>
            </el-popover>
            <el-popover placement="right" width="400" trigger="click">
              <el-table :data="gridData">
                <el-table-column
                  width="150"
                  property="date"
                  label="日期"
                ></el-table-column>
                <el-table-column
                  width="100"
                  property="name"
                  label="姓名"
                ></el-table-column>
                <el-table-column
                  width="300"
                  property="address"
                  label="地址"
                ></el-table-column>
              </el-table>
              <el-button slot="reference">工单配置</el-button>
            </el-popover>
          </div>
          <div class="data-botton">
            <template>
              <el-table :data="tableData" style="width: 100%">
                <el-table-column prop="numberd" label="序号" width="180">
                </el-table-column>
                <el-table-column prop="Workordernumber" label="工单编号" width="180">
                </el-table-column>
                <el-table-column prop="equipmentnumber" label="设备编号" width="180">
                </el-table-column>
                <el-table-column prop="type1" label="工单类型" width="180">
                </el-table-column>
                <el-table-column prop="way" label="工单方式" width="180">
                </el-table-column>
                <el-table-column prop="condition" label="工单状态" width="180">
                  </el-table-column>
                   <el-table-column prop="name" label="人员" width="180">
                </el-table-column>
                <el-table-column prop="date" label="创建日期" width="180">
                </el-table-column>

                <el-table-column prop="operate" label="操作"> </el-table-column>
              </el-table>
            </template>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import SideNav from '@/components/SideNav.vue'
import HeaderNav from '@/components/HeaderNav.vue'
export default {
  data () {
    return {
      tableData: [
        {
          numberd: 1,
          Workordernumber: 202211220001,
          equipmentnumber: '01000036',
          type1: '补货工单',
          way: '手动',
          condition: '取消',
          name: '王小虎',
          date: '2016-05-02',
          operate: '删除'

        },
        {
          numberd: 1,
          Workordernumber: 202211220001,
          equipmentnumber: '01000036',
          type1: '补货工单',
          way: '手动',
          condition: '取消',
          name: '王小虎',
          date: '2016-05-02',
          operate: '删除'
        },
        {
          numberd: 1,
          Workordernumber: 202211220001,
          equipmentnumber: '01000036',
          type1: '补货工单',
          way: '手动',
          condition: '取消',
          name: '王小虎',
          date: '2016-05-02',
          operate: '删除'
        },
        {
          numberd: 1,
          Workordernumber: 202211220001,
          equipmentnumber: '01000036',
          type1: '补货工单',
          way: '手动',
          condition: '取消',
          name: '王小虎',
          date: '2016-05-02',
          operate: '删除'
        }
      ],
      gridData: [
        {
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }
      ],
      input: '',
      options: [
        {
          value: '选项1',
          label: '代办'
        },
        {
          value: '选项2',
          label: '进行'
        },
        {
          value: '选项3',
          label: '取消'
        },
        {
          value: '选项4',
          label: '完成'
        }
      ],
      value: ''
    }
  },
  components: {
    SideNav,
    HeaderNav
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    },
    dropout () {
      this.$router.push('/loginlo')
    }
  }
}
</script>

<style lang="scss">
.dobusiness {
  margin-top: 70px;
  width: 1200px;
  height: 100%;
  // background-color: pink;
}
.dobusiness .dobusiness-right {
  margin-left: 300px;
  width: 100%;
  height: 1000px;
  // background-color: skyblue;
}
.dobusiness-right .right-top {
  width: 100%;
  height: 80px;
  background-color: #fff;
  // background-color: pink;
}
.input1 {
  margin-top: 15px;
  outline-style: none;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.button1 {
  background-color: #5f84ff;
}
.dobusiness-fotter {
  background-color: #fff;
  // display: flex;
  margin-top: 10px;
}
.data-botton {
  margin-top: 30px;
}
</style>
